
public class CopyOfSkillMap {

	private static final int STATS=4, ULT=3;
	static long totalcont=0;
	public static void main (String[] s)
	{
 
		int cont =0;
		int skillCont[] = new int[5];
		
		for (int i=0;i<5;i++)
			buySkill(i, -1, skillCont,0);
		System.out.println("cont "+totalcont);
	}
	
	public static void buySkill(int buying, int last, int skillcont[],int level)
	{
		
		if (level == 26) return;
	 	if (level<2 && buying==ULT) return; //impossivel comprar ult no level 0 e 1
		
	 	if (skillcont[buying]==7&& buying!=STATS) return; //maximo upgrade de skill
	 	//System.out.print(""+buying+",");
		totalcont++;
		skillcont[buying]++;
		for (int i=0;i<5;i++)
		{
			buySkill(i, buying, skillcont, level+1);
			
		}
		skillcont[buying]--;
		
	}
}
